<!DOCTYPE html>
<html lang="zh_cn">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<textarea id="hzq" rows="15"></textarea>
<script src="http://hopeicloud.cn/js/jquery.min.js"></script>


<script>
    $(document).ready(function () {
        
        $('#hzq').mousedown(function () {
            var l = $('#hzq').selectionStart;
            console.log(l)
        });
        
        

    });



    /**
     var STRING_LONG_TIME = "";
     $(document).ready(function () {
        $('#hzq').keydown(function () {
            var AsciiTemp = event.keyCode;
            console.log(AsciiTemp)
            // console.log(AsciiTemp);
            if(AsciiTemp == 32 || AsciiTemp == 95 || AsciiTemp >=48 && AsciiTemp <= 57){
                STRING_LONG_TIME = "";
            } else if (AsciiTemp >= 97 && AsciiTemp <= 122 || AsciiTemp >= 65  && AsciiTemp <= 90){
                var charTemp = String.fromCharCode(AsciiTemp);
                STRING_LONG_TIME += charTemp;
            }
            console.log(STRING_LONG_TIME);
        });
    });
     */


</script>
</body>
</html>